package com.example.bluetooth

import android.content.Intent
import android.provider.Settings
import com.example.bluetooth.ui.BottomDialog

class BluetoothSettingsDialog : BottomDialog() {
    override val TAG: String = "BluetoothSettingsDialog"
    override val title: String = "打开蓝牙"
    override val desc: String = "使用本应用需要打开蓝牙，否则将不能正常使用。前住设置页面，手动打开蓝牙?"
    override val allow: String = "前往"
    override val deny: String = "拒绝"
    override val allowCallback: () -> Unit = {
        dismiss()
        val intent = Intent(Settings.ACTION_BLUETOOTH_SETTINGS)
        startActivity(intent)
    }
    override val denyCallback: () -> Unit = {
        dismiss()
    }
}